<%@page contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html>
<html>

<head>
	<title>Login</title>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<script>
		if (self != top) {
			top.location.href = window.location.href;
		}
	</script>
	
	<script type="text/javascript">
		var ctx="${pageContext.request.contextPath}";
	</script>
</head>
<body>
	
	<form id="loginForm" action="${ctx }/j_spring_security_check" method="POST">
		<input type="text" placeholder="系统账号" id="username" name="j_username" value="admin" /><br/>
		<input type="password" placeholder="登陆密码" id="password" name="j_password" value="admin" /><br/>
		
		<input type="submit" onclick="return validateForm();" value="登陆"/>
		<input type="reset" value="重置"/>
	</form>
	
</body>

</html>
